import { createApp } from "vue";
import { createPinia } from "pinia";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import piniaPersist from 'pinia-plugin-persist'
import Vant from 'vant';
import 'vant/lib/index.css';
import App from "./App.vue";
import router from "./router";
import axios from 'axios';
import "./assets/main.css";


const app = createApp(App);
const pinia = createPinia()
pinia.use(piniaPersist)
app.provide('$axios', axios);
app.use(pinia);
app.use(Vant);
app.use(router);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.mount("#app");
